<?
if($strStyleSheet == TRUE){
	echo "<table class='Normal' border='0' align='left' width='100%' bgcolor='white'>";
}?>
 	<tr>
     	<td><?
		if(!isset($_POST['arrProduct']) || (!is_array($_POST['arrProduct'])))
			return false;
		
		$strJoin = null;
		$strProducts = null;

		foreach($_POST['arrProduct'] as $key => $value)
		{
			$strProducts .= $strJoin.$key; 
			$strJoin = ", ";
		}
	
		$strSQL = "UPDATE tblProduct SET Discontinued = 1 WHERE ID IN(".$strProducts.")";
		$qryDiscontinue = new MySqlResults($strSQL);
		//echo $qryDiscontinue->SQL;
		if($qryDiscontinue->ErrorMessages)
			echo $qryDiscontinue->ErrorMessages;
		
		$qryDiscontinue = new MySqlResults($strSQL);?>
	
		The following product(s) have been discontinued : <?=$strProducts?>.
		</td>
	</tr>
<?php
	if($strStyleSheet == TRUE){
   		echo "</table>";
	}
?>